{% extends "page_base.html" %}

{% block content %}



{% if aux_encyclopedia_urls or isi_url %}
	<div class="block topborder">

	<h3>Confirmed Sources</h3>

	{% if aux_encyclopedia_urls %}
		<div class="pane">
		<h4>Encyclopedia</h4>
		{% for aux in aux_encyclopedia_urls %}
			<div class="category">
			<a class="clean" href="{{ aux.url }}">
			<img src="{{ aux.get_icon }}"/>
			{{ aux.get_url_type_display }}
			</a>
			</div>
		{% endfor %}
		</div>
	{% endif %}

	{% if isi_url %}
		<div class="pane">
		<h4>Definition</h4>	
		<div class="category">
		<a class="clean" href="{{ isi_url.0.url }}">
		<img src="/images/isi.ico"/>
		ISI
		</a>
		</div>
		</div>
	{% endif %}

	</div>
{% endif %}


{% if parents or children or related %}
	<div class="block topborder">

	<h3>Topic Hierarchy</h3>

	{% if parents %}
		<div class="pane">
		<h4>Parents</h4>
		{% for t2, source in parents %}
			<div class="category">
			<a href="{{t2.get_absolute_url}}">{{ t2.name|capfirst|safe }}</a>,
			<em>source:</em> "{{ source }}"
			</div>
		{% endfor %}
		</div>
	{% endif %}

	{% if children %}
		<div class="pane">
		<h4>Children</h4>
		{% for t2, source in children %}
			<div class="category">
			<a href="{{t2.get_absolute_url}}">{{ t2.name|capfirst|safe }}</a>,
			<em>source:</em> "{{ source }}"
			</div>
		{% endfor %}
		</div>
	{% endif %}
	
	{% if related %}
		<div class="pane">
		<h4>Related</h4>
		{% for t2, source in related %}
			<div class="category">
			<a href="{{t2.get_absolute_url}}">{{ t2.name|capfirst|safe }}</a>,
			<em>source:</em> "{{ source }}"
			</div>
		{% endfor %}
		</div>
	{% endif %}

	</div>
{% endif %}


{% if references_book or references_lecture %}
	<div class="block topborder">
	<h3>References</h3>
	{% if references_book %}
		<div class="references_book"> 
		<h4>Books</h4>
			{% for book,pages in references_book %}
				<a href="{{ book.get_absolute_url }}">{{ book|title|safe }}</a>{% if pages %}: <em>Page #</em> {{ pages|join:", "}}.{% endif %}<br/>
			{% endfor %}
		</div>
	{% endif %}
	{% if references_lecture %}
		<div class="references_lecture">
		<h4>Courses</h4>
			{% for course,lectures in references_lecture %}
				<a href="{{ course.get_absolute_url }}lecture/">{{ course|title|safe }}</a>: <em>Lecture #</em> 
				{% for lecture in lectures %}
					{% if lecture.source %}<a href="/redirect/{{ lecture.source|urlencode}}/">{{ lecture.number }}</a>{% else %}{{ lecture.number }}{% endif %}{% if not forloop.last %}, {% else %}.<br/>{% endif %}
				{% endfor %}
			{% endfor %}
		</div>
	{% endif %}
	</div>
{% endif %}


{% if practitioners%}
	<div class="block topborder">

	<h3>Practitioners</h3>

	{% for p, source in practitioners %}
		<div class="category">
		<a href="http://mathpeople.statbib.org/people?q={{ p.first_name|urlencode }}%20{{ p.last_name|urlencode }}">
		{{ p.first_name|safe }} {{ p.last_name|safe }}</a>, <em>source:</em> "{{ source }}"
		</div>
	{% endfor %}

	</div>
{% endif %}



<div class="block topborder">
<h3>Scripted Searches</h3>

<div class="pane">
<h4>Article Search</h4>

<div class="category">
<a class="clean" href="http://cis.statbib.org/articles/search?q={{topic.name|urlencode}}">
<img src="/images/cis.ico"/>
CIS
</a>
</div>

<div class="category">
<a class="clean" href="http://scholar.google.com/scholar?q={{topic.name|urlencode}}">
<img src="/images/google.ico"/>
Google Scholar
</a>
</div>

<div class="category">
<a class="clean" href="http://www.zentralblatt-math.org/zmath/en/search/?q={{topic.name|urlencode}}">
<img src="/images/zmath.ico"/>
Zmath
</a>
</div>

</div>


<div class="pane">
<h4>Web Search</h4>

<div class="category">
<img src="/images/google.ico"/>
<a class="clean" href="http://www.google.com/search?q={{topic.name|urlencode}}">Google</a>
</div>

<div class="category">
<img src="/images/microsoft.ico"/>
<a class="clean" href="http://search.live.com/results.aspx?q={{topic.name|urlencode}}">Microsoft</a>
</div>

<div class="category">
<img src="/images/yahoo.ico"/>
<a class="clean" href="http://search.yahoo.com/search?p={{topic.name|urlencode}}">Yahoo</a>
</div>

</div>


</div>


<div style="height:12em;"></div>


{% endblock %}
